<?php
include_once('../../../include/init.php');
include(DIR_ROOT_P.'/include/checklogin.php');
include(DIR_ROOT_P.'/header.php');

?>
<?php
    $article_id = fs_get_value("article_id");
	$sql = "select * from ".TABLE_ARTICLE." where article_id = ".$article_id;
	$result = $db -> query($sql);
	$row = $db -> fetch_array($result);
?>
<div class="content">
    <?php include(DIR_ROOT_P.'/html_middle_left.php');?>  
	<div class="content_right">
		<div class="wenzhang">
			<div class="title"><?php echo($row['article_title']);?></div>
			<div class="source">来源：<?php echo($row['article_source']);?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共有<span style="color:#FF0000;"><?php echo($row['article_hits']);?></span>人阅读&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期：<?php echo(date("Y-m-d",$row['article_datetime']));?></div>
			<div class="article_content"><?php echo($row['article_content']);?></div>
		</div>
	</div>
</div>
<?php
	//更新点击数
	$db -> query("update ".TABLE_ARTICLE." set article_hits = article_hits + 1 where article_id = ".$article_id);
include(DIR_ROOT_P.'/bottom.php');
?>